package com.ruoyi.houses.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.common.core.web.domain.AjaxResult;
import com.ruoyi.houses.domain.Area;
import com.ruoyi.houses.service.AreaService;
import com.ruoyi.houses.mapper.AreaMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author 31439
* @description 针对表【area(区域表)】的数据库操作Service实现
* @createDate 2025-09-17 15:13:59
*/
@Service
public class AreaServiceImpl extends ServiceImpl<AreaMapper, Area>
    implements AreaService{

    @Autowired
    AreaMapper areaMapper;

    @Override
    public AjaxResult areaList() {
       List<Area> areaList = areaMapper.areaList();

        return AjaxResult.success(areaList);
    }
}




